package Classroom;

public class Test1 {
    public static void main(String[] args) throws ClassNotFoundException {
        //class对象静态方法forName
        //注意：全类名=包名.类名
        Class  aClass = Class.forName("Classroom.Student");
        System.out.println(aClass);
        //类名获取 .class
        Class studentClass = Student.class;
        System.out.println(studentClass);
        //创建对象，在调用getClass
        Student s = new Student();
        Class aClass1 = s.getClass();
        System.out.println(aClass1);
    }
}
